<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8"/>
    <title>404</title>

    <link href="/static/css/404.css" rel="stylesheet" type="text/css"/>

</head>
<body style="background-color:#f1f4f8;">

<div class="st">
    <div class="fh"><a href="${pageContext.request.contextPath}/admin/login"><img src="/static/images/404_06.png"></a>
    </div>
    <div class="fh"><b id="num">20</b>秒后跳转到首页</div>
</div>

<!--脚本开始-->
<script>
    function countDown(secs) {
        if (--secs > 0) {
            document.getElementById("num").innerText = secs;
            setTimeout(function () {
                countDown(secs)
            }, 1000);
        } else {
            window.location.href = '${pageContext.request.contextPath}/admin/login';
        }
    }

    countDown(20);
</script>
<!--脚本结束-->

</body>
</html>
